package com.mc.kotlinlearn

/**
 * Created by zhangzhenguo on 2018/1/10.
 */
fun function() {
    val str = "hello!"

    fun say(count: Int = 10) {
        println(str)
        if (count > 0) {
            say(count - 1)
        }
    }
    say()
}

fun main(args: Array<String>) {
    for (i in 1..100 step 20) {
        print("$i ")
    }
}